/**
 * 地址 api 封装
 *
 * @Author:    syf
 * @Date:      2025-05-21 16:29:55
 * @Copyright  畅想科技
 */
import { postRequest, getRequest } from '/@/lib/axios';

export const placeApi = {

  /**
   * 分页查询  @author  syf
   */
  queryPage : (param) => {
    return postRequest('/place/queryPage', param);
  },

  /**
   * 增加  @author  syf
   */
  add: (param) => {
      return postRequest('/place/add', param);
  },

  /**
   * 修改  @author  syf
   */
  update: (param) => {
      return postRequest('/place/update', param);
  },


  /**
   * 删除  @author  syf
   */
  delete: (id) => {
      return getRequest(`/place/delete/${id}`);
  },

  /**
   * 批量删除  @author  syf
   */
  batchDelete: (idList) => {
      return postRequest('/place/batchDelete', idList);
  },
  tree: (param) => {
    return postRequest('/place/tree', param);
},
};
